package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_comment")
public class ShopComment extends Model<ShopComment> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private Date ctime;
	private Date mtime;
	private String content;
    /**
     * 评论打分
     */
	private Integer score;
    /**
     * 评论状态 0 未审核 1已通过 2未通过 3已删除
     */
	private Integer status;
    /**
     * 是否匿名 0 否 1 是
     */
	private Boolean anonymous;
    /**
     * 评论人姓名
     */
	private String username;
	@TableField("image_list")
	private String imageList;
    /**
     * 点赞数
     */
	@TableField("upvote_number")
	private Integer upvoteNumber;
    /**
     * 反对数
     */
	@TableField("oppose_number")
	private Integer opposeNumber;
	@TableField("sku_name")
	private String skuName;
	@TableField("user_id")
	private Long userId;
	@TableField("sku_id")
	private Long skuId;
	@TableField("order_item_id")
	private Long orderItemId;
	@TableField("product_id")
	private String productId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Boolean getAnonymous() {
		return anonymous;
	}

	public void setAnonymous(Boolean anonymous) {
		this.anonymous = anonymous;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getImageList() {
		return imageList;
	}

	public void setImageList(String imageList) {
		this.imageList = imageList;
	}

	public Integer getUpvoteNumber() {
		return upvoteNumber;
	}

	public void setUpvoteNumber(Integer upvoteNumber) {
		this.upvoteNumber = upvoteNumber;
	}

	public Integer getOpposeNumber() {
		return opposeNumber;
	}

	public void setOpposeNumber(Integer opposeNumber) {
		this.opposeNumber = opposeNumber;
	}

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public Long getOrderItemId() {
		return orderItemId;
	}

	public void setOrderItemId(Long orderItemId) {
		this.orderItemId = orderItemId;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopComment{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", content=" + content +
			", score=" + score +
			", status=" + status +
			", anonymous=" + anonymous +
			", username=" + username +
			", imageList=" + imageList +
			", upvoteNumber=" + upvoteNumber +
			", opposeNumber=" + opposeNumber +
			", skuName=" + skuName +
			", userId=" + userId +
			", skuId=" + skuId +
			", orderItemId=" + orderItemId +
			", productId=" + productId +
			"}";
	}
}
